Global Index
HTML5 JS API Index > DOM Tutorials & Specs

DOMTokenList

Extended by DOMSettableTokenList

A DOMTokenList object has an associated ordered set of tokens, which is initially empty.

Properties
unsigned long
length
The length attribute must return the number of tokens in the tokens.
Operations
voidadd(DOMString tokens...)
booleancontains(DOMString token)
DOMString?item(unsigned long index)
voidremove(DOMString tokens...)
booleantoggle(DOMString token, optional boolean force)
Referenced by
ElementclassList
HTMLAnchorElementrelList
HTMLAreaElementrelList
HTMLLinkElementrelList